package com.jeff.grailsstudy

class BookBatch {
    String title
    String publisher
    int size
    
    Date dateCreated
    Date lastUpdated
    
    static constraints = {
        importFrom Book //same named fields "title" & "publisher" validation rules imported
        
        size min: 3
    }
    
    static mapping = {
        autoTimestamp true
        version true
    }
}
